<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <button onclick="send()">发送</button>
    <script src="axios.min.js"></script>

    <script>
      function send() {
        // axios
        //   .get("http://localhost/test")
        //   .then(function (response) {
        //     if (response.status == 200) {
        //       console.log(response.data);
        //     } else {
        //       console.log("失败");
        //     }
        //   })
        //   .catch(function (error) {
        //     console.log(error);
        //   });

        axios("", {
          method: "post",
          data: {},
        });
      }
    </script>
  </body>
</html>
